
#include "jpslave.h"

JpSlave::JpSlave(QObject *parent) : JpSocket(parent)
{

}

JpSlave::~JpSlave()
{

}

JpSlave::JpSlave(SlaveMastMap data){
_slave_info=data;
_serverip=data.masterip; //初始化ip
}

void JpSlave::run(){
    clientInit();
    //client->write("sadfsadfdsf");
}

//接收数据
void JpSlave::readClientLogic(){
  // QByteArray i=client->readLine();
  // client->waitForReadyRead(1000);
 //  InMapData *t2=(InMapData *)i.data();

   qDebug()<<"客户端:key";
   /*
   int count= this->metaObject()->methodCount();
   for(int i=0;i<count;i++){
       QMetaMethod method= this->metaObject()->method(i);
       qDebug()<<"method:"<<method.name();
   }
    */
}

